<!DOCTYPE html>
<html>
<head>
    <title>快印印刷机配置表</title>
		<#include "/header.html">
    <link rel="stylesheet" href="${request.contextPath}/statics/css/ziyun-erp.css">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <form class="form-inline" role="form">
                <div class="form-group">
                    <a @click="reset">
                        <i class="fa fa-refresh"></i>
                    </a>
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <input type="text" class="form-control input-sm" v-model="q.printFactoryName" @keyup.enter="query"
                           placeholder="工厂印刷机名称">
                </div>&nbsp;&nbsp;&nbsp;
            <#if shiro.hasPermission("quoteFastPrint:quoteprintfactory:list")>
            <a class="btn btn-primary btn-sm" @click="query"><i class="fa fa-search"></i>&nbsp;查询</a>
            </#if>
			<#if shiro.hasPermission("quoteFastPrint:quoteprintfactory:save")>
            <a class="btn btn-primary btn-sm" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<!--<#if shiro.hasPermission("quoteFastPrint:quoteprintfactory:update")>
            <a class="btn btn-primary btn-sm" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>-->
			<#if shiro.hasPermission("quoteFastPrint:quoteprintfactory:delete")>
            <a class="btn btn-primary btn-sm" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
         </form>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

<div v-show="!showList" class="panel panel-default">
    <div class="panel-heading">{{title}}</div>
    <form class="form-horizontal" style="width: auto;">
        <hr class="form-horizontal" style="width: auto;">
        <div class="row">
            <div class="col-md-3">
                <div class="form-group">
                    <div class="col-sm-6 control-label">机器名称</div>
                    <div class="col-sm-6">
                        <input type="text"  class="form-control" v-model="quoteFastPrintVo.quoteFastPrint.printFactoryName" placeholder="机器名称"/>
                    </div>
                </div>
            </div>
            <div class="col-md-3">
                <div class="form-group">
                    <div class="col-sm-6 control-label">类型</div>
                    <div class="col-sm-6">
                        <select class="input-sm col-sm-12 " v-model="quoteFastPrintVo.quoteFastPrint.printName" placeholder="类型">
                            <option value="数码快印机">数字快印机</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-md-3">
                <div class="form-group">
                    <div class="col-sm-6 control-label"> 印刷最大尺寸长(/mm)：</div>
                    <div class="col-sm-6">
                        <input type="text"  class="form-control" v-model="quoteFastPrintVo.quoteFastPrint.maxLength" placeholder="机器最大尺寸长"/>
                    </div>
                </div>
            </div>
            <div class="col-md-3">
                <div class="form-group">
                    <div class="col-sm-6 control-label"> 印刷最大尺寸宽(/mm)</div>
                    <div class="col-sm-6">
                        <input type="text"  class="form-control" v-model="quoteFastPrintVo.quoteFastPrint.maxWide" placeholder="机器最大尺寸宽"/>
                    </div>
                </div>
            </div>
            <div class="col-md-3">
                <div class="form-group">
                    <div class="col-sm-6 control-label">印刷最小尺寸长(/mm)</div>
                    <div class="col-sm-6">
                        <input type="text"  class="form-control" v-model="quoteFastPrintVo.quoteFastPrint.minLength" placeholder="机器最小尺寸长"/>
                    </div>
                </div>
            </div>
            <div class="col-md-3">








                <div class="form-group">
                    <div class="col-sm-6 control-label">印刷最小尺寸宽(/mm)</div>
                    <div class="col-sm-6">
                        <input type="text"  class="form-control" v-model="quoteFastPrintVo.quoteFastPrint.minWide" placeholder="机器最小尺寸宽"/>
                    </div>
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-md-3">
                <div class="form-group">
                    <div class="col-sm-6 control-label">最小克重</div>
                    <div class="col-sm-6">
                        <input type="text"  class="form-control" v-model="quoteFastPrintVo.quoteFastPrint.minWeight" placeholder="最小克重"/>
                    </div>
                </div>
            </div>
            <div class="col-md-3">
                <div class="form-group">
                    <div class="col-sm-6 control-label">最大克重</div>
                    <div class="col-sm-6">
                        <input type="text"  class="form-control" v-model="quoteFastPrintVo.quoteFastPrint.maxWeight" placeholder="最大克重"/>
                    </div>
                </div>
            </div>
            <div class="col-md-3">
                <div class="form-group">
                    <div class="col-sm-6 control-label">出血尺寸</div>
                    <div class="col-sm-6">
                        <input type="text"  class="form-control" v-model="quoteFastPrintVo.quoteFastPrint.deficit" placeholder=" 出血尺寸"/>
                    </div>
                </div>
            </div>
        </div>

        <div class="form-group">
           <el-form :model="quoteFastPrintVo.quotePrintFacotoryPirceList"   label-width="130px" size="small">
                <el-form-item label="机器尺寸设置"  prop="machineSize" >
                    <template>
                        <el-table border :data="quoteFastPrintVo.quotePrintFacotoryPirceList" style="width: 100%" >
                            <el-table-column  font-color="black" prop="colour" label="颜色">
                                <template scope="scope">
                                    <select class="input-sm col-sm-6 " v-model="scope.row.colour" placeholder="请选择">
                                        <option v-for="item in e.quoteFastPrintColourEnum" :value="item.value">{{item.describe}}</option>
                                    </select>
                                </template>
                            </el-table-column>
                            <el-table-column  font-color="black" prop="paper_length" label="打印纸张尺寸长/mm">
                                <template scope="scope">
                                    <el-input-number v-model="scope.row.paperLength" controls-position="right"  :min="0" ></el-input-number>
                                </template>
                            </el-table-column>
                            <el-table-column  prop="paper_wide" label="打印纸张尺寸宽/mm">
                                <template scope="scope">
                                    <el-input-number v-model="scope.row.paperWide" controls-position="right"  :min="0"></el-input-number>
                                </template>
                            </el-table-column>
                            <el-table-column  prop="area_length" label="打印幅面尺寸长/mm">
                                <template scope="scope">
                                    <el-input-number v-model="scope.row.areaLength" controls-position="right"  :min="0" ></el-input-number>
                                </template>
                            </el-table-column>
                            <el-table-column  prop="area_wide" label="打印幅面尺寸宽/mm	">
                                <template scope="scope">
                                    <el-input-number v-model="scope.row.areaWide" controls-position="right"  :min="0" ></el-input-number>
                                </template>
                            </el-table-column>
                            <el-table-column  font-color="black" prop="display" label="是否启用">
                                <template scope="scope">
                                    <el-switch
                                            v-model="scope.row.display"
                                            active-color="#13ce66"
                                            inactive-color="#ff4949"
                                    >
                                    </el-switch>
                                </template>
                            </el-table-column>
                            <el-table-column fixed="right"  label="操作">
                                <template slot-scope="scope">
                                    <el-button type="primary" @click="addRow(quoteFastPrintVo.quotePrintFacotoryPirceList)">新增</el-button>
                                    <el-button @click.native.prevent="deleteRow(scope.$index,quoteFastPrintVo.quotePrintFacotoryPirceList)" size="small"> 移除 </el-button>
                                </template>
                            </el-table-column>
                        </el-table>
                    </template>
                </el-form-item>
            </el-form>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label"></div>
            <input type="button" class="btn btn-primary  btn-sm" @click="saveOrUpdate" value="确定"/>
            &nbsp;&nbsp;<input type="button" class="btn btn-warning  btn-sm" @click="reload" value="返回"/>
        </div>
    </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/quoteFastPrint/quotefastprint.js?_${.now?long}"></script>
</body>
</html>